package day06;

/**
 * 操作给定的二叉树，将其变换为源二叉树的镜像。
 * 
 * @author Administrator
 *
 */
public class Test01 {
	public static void main(String[] args) {

	}

	public static void Mirror(TreeNode root) {
		if (root == null) {
			return;
		}
		if (root != null) {
			TreeNode node = root.right;
			root.right = root.left;
			root.left = node;
		}
		Mirror(root.left);
		Mirror(root.right);
	}
}
